package com.itheima.heimatoutiaonews.controller;

import com.itheima.heimatoutiao.common.Result;
import com.itheima.heimatoutiaonews.domain.WmNews;
import com.itheima.heimatoutiaonews.service.WmNewsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("v1/news")
public class WmNewsController {
    @Autowired
    private WmNewsService wmNewsService;
    @PostMapping("submit")
    public Result submitNews(@RequestBody WmNews wmNews) {
        log.info("{}",wmNews);
        return null;
    }
}
